package com.gusto.test.colfil.mock;

import com.gusto.engine.colfil.Prediction;
import com.gusto.engine.colfil.Rating;
import com.gusto.engine.colfil.neighborhood.storedistance.DistanceProcessor;

public class DistanceProcessorMockImpl implements DistanceProcessor {
	
	private String operation;
	
	public String getOperation() {
		return operation;
	}
	
	public void flushDistances() {
		operation = "flush";
	}

	public void insertPrediction(long userId, long itemId, Prediction prediction) {
		operation = "insertPrediction " + userId + " " + itemId + " " + prediction.getValue();
	}

	public void insertRating(long userId, long itemId, Rating rating, boolean checkExistence) {
		operation = "insertRating " + userId + " " + itemId + " " + rating.getValue();
	}

}
